#include "FramedSource.hh"
#include "UsageEnvironment.hh"

class CameraH264VideoSource :
	public FramedSource
{
public:
	static CameraH264VideoSource* createNew(UsageEnvironment& env, char* url);
	bool isFull;

public:
    virtual u_int8_t type();
    virtual u_int8_t width(); // # pixels/8 (or 0 for 2048 pixels)
    virtual u_int8_t height(); // # pixels/8 (or 0 for 2048 pixels)

protected:
	CameraH264VideoSource(UsageEnvironment& env, char* url);
	~CameraH264VideoSource(void);

	char* rtspURL;

	

private:
    // redefined virtual functions:
    virtual void doGetNextFrame();
    virtual void doStopGettingFrames();
    //virtual double getAverageLevel() const;


private:
	u_int8_t fLastWidth;
	u_int8_t fLastHeight;
};
